<%@ Page Language="C#"  AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" Title="Untitled Page" %>
<%@ Register Src="Controls/Login.ascx" TagName="Login" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div id="header"  >Header
        <div id="panelLogin"><uc1:Login ID="Login1" runat="server" /></div>
      </div>
    
  <div id="HomePagecontent" >
   <asp:ObjectDataSource runat="server" ID="SagaDataSource" SelectMethod="GetSagaSummarys"
        TypeName="HermesPortal.Core.SagaServices">
    </asp:ObjectDataSource>
    <asp:GridView runat="server" ID="SagaList" DataSourceID="SagaDataSource" AutoGenerateColumns="false" DataKeyNames="Id"  Width="100%"  OnSelectedIndexChanging ="OnSagaListIndexChange" >
    <Columns>
    <asp:ButtonField ButtonType="Image"  ImageUrl="~/App_Themes/testTheme/Images/covenant_sigil.gif"  CommandName="Select"  />  
    <asp:TemplateField>
      <ItemTemplate>
      <table>
        <tr>
            <td colspan="2">
            <asp:Label runat="server" ID="lblSagaTitle" Text='<%# Eval("Name") %>'  />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Label ID="lblFoundedDateTitle" Text="Founded Date:" runat="server" AssociatedControlID="lblFoundedDate"  /> <asp:Label ID="lblFoundedDate" runat="server" Text='<%# Eval("FoundedDate") %>' />
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label runat="server" ID="lblFormationStoryTitle" Text="Saga Summary" /><br />
                   <asp:Label runat="server" ID="lblFormationStory" Text='<%# Eval("FormationStory") %>' />
            </td>
        </tr>
      </table>
      </ItemTemplate>
    </asp:TemplateField>
    
    </Columns>
    </asp:GridView>
    </div>
    <div id="panelFooterX" style="background-color:Navy; height:68px;   " >Footer</div>
    </form>
</body>
</html>
